package com.crm.system.service.impl.performanceRankingManager;

import com.crm.model.qo.performanceRankingManager.PerformanceRankingQO;
import com.crm.model.vo.performanceRankingManager.CompanyPerformanceRankingVO;
import com.crm.model.vo.performanceRankingManager.PersonalPerformanceRankingVO;
import com.crm.service.performanceRankingManager.PerformanceRankingDbService;
import com.crm.system.service.performanceRankingManager.PerformanceRankingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2021/8/27 11:04
 */
@Service
public class PerformanceRankingServiceImpl implements PerformanceRankingService {

    @Autowired
    PerformanceRankingDbService performanceRankingDbService;

    /**
     * 个人业绩统计
     * @Author pym
     * @Date  2021/8/27 14:05
     * @param performanceRankingQO 参数
     * @return {@link {java.util.List<com.crm.model.vo.performanceRankingManager.PersonalPerformanceRankingVO>}}
     */
    @Override
    public List<PersonalPerformanceRankingVO> personalPerformanceRanking(PerformanceRankingQO performanceRankingQO) {
        return performanceRankingDbService.personalPerformanceRanking(performanceRankingQO);
    }

    /**
     * 公司业绩统计
     * @Author pym
     * @Date  2021/8/27 14:05
     * @param performanceRankingQO 参数
     * @return {@link {java.util.List<com.crm.model.vo.performanceRankingManager.CompanyPerformanceRankingVO>}}
     */
    @Override
    public List<CompanyPerformanceRankingVO> companyPerformanceRanking(PerformanceRankingQO performanceRankingQO) {
        return performanceRankingDbService.companyPerformanceRanking(performanceRankingQO);
    }

}
